

GCC=gcc
SOURCE=test_send.c test_recv.c
LIB_SOURCE=send.c recv.c interface.c conn.c epoll.c tcp.c tpool.c debug.c conf.c reconn.c timer.c
CFLAGS=-lpthread -g
EXEC=test_send test_recv

all:${EXEC}

main:
	${GCC} main.c ${LIB_SOURCE}  -o main  ${CFLAGS} 
test_send:
	${GCC} test_send.c ${LIB_SOURCE}  -o test_send  ${CFLAGS}
test_recv:
	${GCC} test_recv.c ${LIB_SOURCE}  -o test_recv  ${CFLAGS}

test_tpool:
	gcc test_tpool.c tpool.c -o test_tpool -lpthread

clean:
	rm -fr test_tpool main test_send test_recv core.*
